/* 
 * Copyright (C), 2016-2020, 厦门盈欣宝金融信息服务有限公司
 * Project Name :boot-parent
 * File Name: org.easytouseit.bootlog.controller
 * Encoding UTF-8 
 * Version: 1.0 
 * Date: 2018-07-19 16:22
 * History:  
 * 1. Date: 2018-07-19
 *    Author: guojm 
 *    Modification: 新建
 * 2. ...
 */
package org.easytouseit.bootlog.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author guojm
 * @version V1.0
 * @date 2018-07-19
 */
@Slf4j
@RestController
public class LogController {

    @RequestMapping("/log")
    public void log(){
       log.trace("日志输出 trace");
       log.debug("日志输出 debug");
       log.info("日志输出 info");
       log.warn("日志输出 warn");
       log.error("日志输出 error");
       String name="老猫码坊";
       String author="老猫";
       log.info("name:"+name+" author:"+author);
       log.info("name:{},author:{}",new Object[]{name,author});
    }
}
